<%@ page import="budget.control.Expense" %>



<div class="fieldcontain ${hasErrors(bean: expenseInstance, field: 'transactionDate', 'error')} required">
	<label for="transactionDate">
		<g:message code="expense.transactionDate.label" default="Transaction Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="transactionDate" precision="day"  value="${expenseInstance?.transactionDate}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: expenseInstance, field: 'amount', 'error')} required">
	<label for="amount">
		<g:message code="expense.amount.label" default="Amount" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="amount" value="${fieldValue(bean: expenseInstance, field: 'amount')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: expenseInstance, field: 'account', 'error')} required">
	<label for="account">
		<g:message code="expense.account.label" default="Account" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="account" name="account.id" from="${budget.control.Account.list()}" optionKey="id" required="" value="${expenseInstance?.account?.id}" class="many-to-one"/>
</div>

